Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

struct System.​Diagnostics.​ActivityCreationOptions<​T>

Assembly: System.Diagnostics.DiagnosticSource

Encapsulates all the information that is sent to the activity listener, to make decisions about the creation of the activity instance, as well as its state. The possible generic type parameters are <see cref="T:System.Diagnostics.ActivityContext" /> or <see cref="T:System.String" /> .

Properties

Source
Gets the activity source that creates the activity.
public string
Name
Gets the name to use as OperationName of the activity that will get created.
public ActivityKind
Kind
Gets the activity kind that the activity will be created with.
public T
Parent
Gets the parent context or parent Id that the activity will get created with.
Gets the tags that the activity will be created with.
Gets the enumeration of activity links that the activity will be created with.
SamplingTags
Gets the collection that is used to add more tags during the sampling process. The added tags are also added to the created Activity if it is decided that it should be created by the <see cref="T:System.Diagnostics.ActivityListener" /> callbacks.
TraceId
Gets the trace Id to use in the Activity object if it is decided that it should be created by <see cref="T:System.Diagnostics.ActivityListener" /> callbacks.
public string
TraceState
Gets or initializes the trace state to use when creating the Activity.

Methods

public bool
Equals​(object obj)
Inherited from ValueType
public int
GetHashCode​()
Inherited from ValueType
public string
ToString​()
Inherited from ValueType
protected void
Finalize​()
Inherited from object
public Type
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object